package com.pep.mgmt.model.entity;

import java.time.LocalDateTime;

import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.Data;

@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
public class RunningEntity {
    @Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;

    @CreatedDate //@LastModifiedDate, @CreatedBy, @LastModifiedBy
    private LocalDateTime creationTime;
    
    private String vrfName;
    private Long pId;
    private boolean requiredStopped;
    private String localBindIpAddr;
    private String workMode;
    private String launchCmd;
    public RunningEntity() {
        requiredStopped = false;
    }
}
